package com.szrt.day20170411;


import org.junit.Test;

public class StudentTest {
	
	
	/**
	 * 构造方法的调用和普通方法一样
	 * 类的名称(首字母大写)  具体的对象的名称(可以自定义) =new 类的构造方法();
	 * @throws Exception
	 */
	@Test
	public void test01() throws Exception {
		
		Student hexiaoqiang;
		
		// CTRL +
		hexiaoqiang= new Student("何小强",28,'男');
		
		String studentName =hexiaoqiang.getStudentName();
		System.out.println(studentName);
		
		
		char sex =hexiaoqiang.getStudentSex();
		System.out.println(sex);
		
		int age =hexiaoqiang.getStudentAge();
		System.out.println(age);
		
		hexiaoqiang.sing("学习类型好榜样");
		
		
	}
	
	@Test
	public void test02() throws Exception {
		
		Student hexiaoqiang= new Student("何小强",28,'男');
		
		System.out.println(hexiaoqiang/*.toString()*/);
		
		
		
	}

}
